﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using MyBet.Class;

namespace MyBet
{
	public partial class BetControl : UserControl
	{
		public BetControl()
		{
			// Required to initialize variables
			InitializeComponent();
            ChampionshipDayBetControl.OnMatchLoading += new EventBet2.MatchLoading(ChampionshipDayBetControl_OnMatchLoading);
            ChampionshipDayBetControl.OnMatchLoaded += new EventBet2.MatchLoaded(ChampionshipDayBetControl_OnMatchLoaded);
		}

        void ChampionshipDayBetControl_OnMatchLoaded()
        {
            BusyPopup.IsBusy = false;
        }

        void ChampionshipDayBetControl_OnMatchLoading()
        {
            BusyPopup.IsBusy = true;
            BusyPopup.BusyContent = Helpers.LangHelper.GetString("Loading");
        }

        public void UpdateCulture()
        {
            ChampionshipDayBetControl.UpdateCulture();
        }

	}
}